package org.example.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.example.system.common.base.BaseEntity;

/**
 * 退款记录实体类
 * @TableName biz_refund_record
 */
@EqualsAndHashCode(callSuper = true)
@TableName(value = "biz_refund_record")
@Accessors(chain = true)
@Data
public class RefundRecord extends BaseEntity implements Serializable {
    /**
     * 退款编号
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 微信退款单号
     */
    @TableField(value = "refund_id")
    private String refundId;

    /**
     * 商户订单号
     */
    @TableField(value = "out_trade_no")
    private String outTradeNo;

    /**
     * 微信支付订单号
     */
    @TableField(value = "transaction_id")
    private String transactionId;

    /**
     * 商户退款单号
     */
    @TableField(value = "out_refund_no")
    private String outRefundNo;

    /**
     * 订单总金额
     */
    @TableField(value = "total_fee")
    private BigDecimal totalFee;

    /**
     * 退款总金额
     */
    @TableField(value = "refund_fee")
    private BigDecimal refundFee;

    /**
     * 退款原因
     */
    @TableField(value = "refund_desc")
    private String refundDesc;

    /**
     * 退款状态(0:退款中 1:退款成功 2:退款失败)
     */
    @TableField(value = "refund_status")
    private Integer refundStatus;

    /**
     * 退款备注
     */
    @TableField(value = "remark")
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}